//
//  WSGQuickNavigationCell.m
//  oneDollar
//
//  Created by Laki on 16/6/16.
//  Copyright © 2016年 com.Laki.corder. All rights reserved.
//

#import "WSGQuickNavigationCell.h"
#import "WSGQuickNavigationItem.h"

#import <UIImageView+WebCache.h>

@interface WSGQuickNavigationCell()
/** 图标*/
@property (weak, nonatomic) IBOutlet UIImageView *pictureImageView;
/** 名称*/
@property (weak, nonatomic) IBOutlet UILabel *navNameLabel;

@end

@implementation WSGQuickNavigationCell

- (void)setNavigationItem:(WSGQuickNavigationItem *)navigationItem{
    _navigationItem = navigationItem;
    
    // 设置图标
    [self.pictureImageView sd_setImageWithURL:[NSURL URLWithString:navigationItem.picture] placeholderImage:[UIImage imageNamed:@"Circle_BackgroundBigImage"]];
    
    // 设置名称
    self.navNameLabel.text = navigationItem.navName;
}

@end
